﻿/**
 * @author sminutoli
 */
import com.dinmax.flash.sof.SOFServiceData;
import com.dinmax.flash.utilities.classes.ClassFinder;
import com.dinmax.flash.utilities.xml.XMLUtils;

class com.dinmax.flash.sof.SOFServiceDataFactory {
	
	public static function getSOFServiceData(xml:XML):SOFServiceData {
		//trace("SOFServiceDataFactory.as | getSOFServiceData()");
		//trace("SOFServiceDataFactory.as | xml= "+xml);
		var d:SOFServiceData = new SOFServiceData();
		//le pido un array a XMLUtils con todos los nodos de ese nombre
		var classes:Array = XMLUtils.getNodes(xml, "class");
		var nClasses:Number = classes.length;
		//me meto adentro del nodo de la clase
		for (var i : Number = 0; i < nClasses; i++) {
			var className:String = XMLUtils.getAttribute(classes[i], "name");
			var r:com.dinmax.requirement.user.User;
			var myClass:Function = ClassFinder.create("com.dinmax.requirement.user.User");
			//trace(myClass);
		}
		return 	d;
	};
	
}